A repository stores project files and tracks changes.
git init
Commit saves the changes to the repository.
git commit -m "First Commit"
Push uploads local files to GitHub repository.
git push origin main
Pull downloads the latest updates from GitHub.
git pull origin main
Branches allow developers to work on new features.
git branch feature1
Merge combines branch changes into the main branch.
git merge feature1